  <!-- nav bar content -->
<nav class="navbar navbar-static-top navbar-inverse" role="navigation">
  <div class="navcontainer container">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="/">Flask-Bootstrap</a>
    </div>

    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse">
      <ul class="nav navbar-nav pull-right">
      {% if current_user.is_authenticated %}
        <li><a href="/authenticated/home/">Home</a></li>
        <li><a href="/about/">About</a></li>
        <li>
        <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="glyphicon glyphicon-user"></i> {{ current_user.username }} <b class="caret"></b></a>
          <ul class="dropdown-menu pull-right">
            <li><a href="/users/settings/">Settings</a></li>
            <li><a href="/users/logout/">Logout</a></li>
          </ul>
        </li>
      {% else %}
        <li><a href="/">Home</a></li>
        <li><a href="/users/login/">Login</a></li>
        <li><a href="/users/register/">Signup</a></li>        
      {% endif %}
      </ul>
    </div>

  </div>

</nav>